package com.seven.restaurant.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author BaiBan
 * @since 2022-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order")
public class OrderPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 桌号
     */

    private Integer tableId;

    /**
     * 顾客编号
     */
    private Long userId;

    /**
     * 0-未上菜; 1-已上菜;
     */
    private Integer serve;

    /**
     * 0-未支付; 1-已支付;
     */
    private Integer pay;

    /**
     * 删除标记
     */
    private Integer del;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
